Skip to content

Feature - AB#32084 Application List Performance Indexes#2421

Merged
DavidBrightBcGov merged 2 commits into
devfrom
feature/AB#32084-app-list-performance-indexes
May 8, 2026
Merged

Feature - AB#32084 Application List Performance Indexes#2421
DavidBrightBcGov merged 2 commits into
devfrom
feature/AB#32084-app-list-performance-indexes

Conversation

@DavidBrightBcGov
Copy link
Copy Markdown
Contributor

Column index generation created across main tables to support the GrantApplications table query optimization

Recreated indexes post .NET10 upgrade from previous branch to properly capture migration changes

…ntApplications table query optimization

Recreated indexes post .NET10 upgrade from previous branch to properly capture migration changes
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 7, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 632
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

1 similar comment
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 632
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds several EF Core/PostgreSQL indexes (primarily TenantId-anchored and a few application-list specific indexes) to improve query performance for the Grant Applications listing and related joins in the tenant database, and updates the EF Core model snapshot accordingly.

Changes:

  • Added application-list performance indexes on Applications (ReferenceNo, TenantId+SubmissionDate) and supporting join tables (TenantId+ApplicationId).
  • Added TenantId-focused indexes on supporting tables (Persons, Applicants, ApplicationForms).
  • Updated GrantTenantDbContext model configuration and GrantTenantDbContextModelSnapshot to reflect the new indexes.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/GrantTenantDbContextModelSnapshot.cs Snapshot updates to include the new indexes.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260507201139_Add_Supporting_Table_TenantId_Indexes.cs Adds TenantId-related indexes for supporting tables.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260507201003_Add_Applications_Performance_Indexes.cs Adds performance-oriented indexes for the applications list query patterns.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260507201003_Add_Applications_Performance_Indexes.Designer.cs Migration designer reflecting the target model at the time of migration.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/EntityFrameworkCore/GrantTenantDbContext.cs Adds the corresponding HasIndex(...) configurations to the EF model.

.IsRequired(false)
.OnDelete(DeleteBehavior.NoAction);

b.HasIndex(x => new { x.TenantId, x.IsDeleted }).HasFilter("\"IsDeleted\" = false");
Comment on lines +18 to +22
migrationBuilder.CreateIndex(
name: "IX_ApplicationForms_TenantId_IsDeleted",
table: "ApplicationForms",
columns: new[] { "TenantId", "IsDeleted" },
filter: "\"IsDeleted\" = false");
@DavidBrightBcGov DavidBrightBcGov marked this pull request as ready for review May 8, 2026 16:27
@DavidBrightBcGov DavidBrightBcGov merged commit 04101fb into dev May 8, 2026
29 checks passed
@DavidBrightBcGov DavidBrightBcGov deleted the feature/AB#32084-app-list-performance-indexes branch May 8, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants